package com.example.data.factory.entity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
@Getter
@Setter
@ApiModel(value = "Script对象", description = "")
public class Script implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("脚本id")
    @TableId(value = "script_id", type = IdType.AUTO)
    private Integer scriptId;

    @ApiModelProperty("脚本名称,保证唯一")
    private String scriptName;

    @ApiModelProperty("脚本文件地址")
    private String scriptFileUrl;

    @ApiModelProperty("脚本分类id")
    private Integer classifyId;

    @ApiModelProperty("脚本分类名称")
    private String classifyName;

    @ApiModelProperty("脚本类型，默认python")
    private String scriptType;

    @ApiModelProperty("类名")
    private String className;

    @ApiModelProperty("函数名")
    private String functionName;

    @ApiModelProperty("输入参数")
    private String inputParams;

    @ApiModelProperty("输出参数")
    private String outputParams;

    @ApiModelProperty("脚本描述")
    private String description;

    @ApiModelProperty("0-未发布（草稿），1-已发布，2-已停用")
    private Byte status;

    @ApiModelProperty("删除状态 0：未删除， 1：已删除")
    private Byte deleted;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
